package com.example.demo.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by liujiahao on 2019/1/16.
 */
@Mapper
public interface StudentMapper {
    @Select("select name from t_student where id=1")
    String findAll();
    @Update("UPDATE t_student set age=age+'1' WHERE id=1")
    void update();
}
